<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditOrgaoUsuarioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form>
                <p:growl id="messages" life="3000"/>

                <h:panelGroup id="messagePanel" styleClass="ajustaListaMensagemErro"  layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="list"/>
                </h:panelGroup>
                <p:panel>
                    <f:facet name="header">
                        <h:outputText value="#{bundle.OrgaoUsuarioTitle}"/>
                    </f:facet>
                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{bundle.EditOrgaoUsuarioLabel_useId}" for="useId" />
                        <p:inplace id="basic" >
                            <p:inputText id="useId" readonly="true" value="#{orgaoUsuarioController.selected.useId}" title="#{bundle.EditOrgaoUsuarioTitle_useId}" required="true" requiredMessage="#{bundle.EditOrgaoUsuarioRequiredMessage_useId}"/>
                        </p:inplace>
                        <h:outputLabel value="#{bundle.EditOrgaoUsuarioLabel_useOrgId}" for="useOrgId" />
                        <h:selectOneMenu id="useOrgId" value="#{orgaoUsuarioController.selected.useOrgId}" title="#{bundle.EditOrgaoUsuarioTitle_useOrgId}" required="true" requiredMessage="#{bundle.EditOrgaoUsuarioRequiredMessage_useOrgId}">
                            <f:selectItems value="#{orgaoController.itemsAvailableSelectOne}"/>
                            <p:focus for="useOrgId"/>
                        </h:selectOneMenu>                    
                        <!--<h:outputLabel value="#{bundle.EditOrgaoUsuarioLabel_useSe}" for="useSe" />
                        <p:inputText id="useSe" value="#{orgaoUsuarioController.selected.useSe}" title="#{bundle.EditOrgaoUsuarioTitle_useSe}" />-->
                    </h:panelGrid>
                    <br/>
                    <p:commandButton ajax="false" icon="ui-icon-disk" action="#{orgaoUsuarioController.update}" value="#{bundle.EditOrgaoUsuarioSaveLink}"/> &nbsp;                                    
                    <p:commandButton ajax="false" action="#{orgaoUsuarioController.prepareList}" value="#{bundle.EditOrgaoUsuarioShowAllLink}" immediate="true"/>                
                </p:panel>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
